#ifndef _DR16_H_
#define _DR16_H_

#include "sys.h" 
/* ----------------------- RC Channel Definition---------------------------- */
#define RC_CH_VALUE_MIN    ((uint16_t)364 )
#define RC_CH_VALUE_OFFSET ((uint16_t)1024)
#define RC_CH_VALUE_MAX    ((uint16_t)1684)
/* ----------------------- RC Switch Definition----------------------------- */
#define RC_SW_UP           ((uint16_t)1)
#define RC_SW_MID 		   ((uint16_t)3)
#define RC_SW_DOWN 		   ((uint16_t)2)
/* ----------------------- PC Key Definition-------------------------------- */
#define KEY_PRESSED_OFFSET_W 	 ((uint16_t)0x01<<0)
#define KEY_PRESSED_OFFSET_S 	 ((uint16_t)0x01<<1)
#define KEY_PRESSED_OFFSET_A 	 ((uint16_t)0x01<<2)
#define KEY_PRESSED_OFFSET_D 	 ((uint16_t)0x01<<3)
#define KEY_PRESSED_OFFSET_Q 	 ((uint16_t)0x01<<4)
#define KEY_PRESSED_OFFSET_E 	 ((uint16_t)0x01<<5)
#define KEY_PRESSED_OFFSET_SHIFT ((uint16_t)0x01<<6)
#define KEY_PRESSED_OFFSET_CTRL  ((uint16_t)0x01<<7)
/* ----------------------- Data Struct ------------------------------------- */
#define Uart4_DMARX_Length   25
void dr16_init(void);
#endif
